package com.yonyou.le.unattended.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 通过spring从application.properties读取的配置
 *
 */
@Component
public class ProConstant {
	/**
	 * LE IP
	 */
	@Value("${le.ip}")  
	public String ip;
	/**
	 * LE PORT
	 */
	@Value("${le.port}")  
	public String port;
	/**
	 * LE login Service
	 */
	@Value("${le.loginService}")  
	public String loginService;
	/**
	 * LE 数据源
	 */
	@Value("${le.datasource}")  
	public String datasource;
	/**
	 * 抬杆服务
	 */
	@Value("${service.url.poll}")
	public String pollUpUrl;
	/**
	 * 显示LED服务
	 */
	@Value("${service.url.led}")
	public String showLedURL;
	
	/**
	 * 判断磅上有没有车的阈值
	 */
	@Value("${op.weight_threshold}")
	public double weight_threshold;
	/**
	 * 抬杆等待时间1
	 */
	@Value("${op.wait_time1}")
	public int wait_time1;
	/**
	 * 抬杆等待时间2
	 */
	@Value("${op.wait_time2}")
	public int wait_time2;
	/**
	 * 抬杆等待时间3
	 */
	@Value("${op.wait_time3}")
	public int wait_time3;
	/**
	 * 抬杆等待时间4
	 */
	@Value("${op.wait_time4}")
	public int wait_time4;
	
	
	

}